package com.hzbc.faceattendance.repository;
/**
 * @author junmu
 * @time 2025-07-25 14:14:01
 */
import com.hzbc.faceattendance.model.SystemLog;
import jakarta.transaction.Transactional;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Repository;

@Repository
public interface LogRepository extends JpaRepository<SystemLog, Long> {
    @Async
    @Transactional
    default void saveAsync(SystemLog log) {
        save(log);
    }
}